package com.yuandian.middle.platform.enums;

/**
 * 说明：服务输出形式枚举类
 * @Author tianlr
 * @Date 2023/5/19 10:11
 */
public enum MpServiceInvocationEnum {

    API("11", "API"),
    SDK("12", "SDK"),
    H5("13", "H5"),
    FILE("14", "文件类"),
    PAAS("21", "PaaS"),
    SAAS("31", "SaaS"),
    DELIVERY("32", "交付类"),
    REPOSITORY("33", "软件仓库类");

    private String item;
    private String itemValue;
    MpServiceInvocationEnum(String item, String itemValue){
        this.item = item;
        this.itemValue = itemValue;
    }

    public static String getItemValue(String item) {
        for (MpServiceInvocationEnum m : MpServiceInvocationEnum.values()) {
            if ((m.item).equals(item)) {
                return m.itemValue;
            }
        }
        return "";
    }
}
